package com.yzf.wisecoder.wisecoderservice.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yzf.wisecoder.wisecoderstorage.mysql.entity.ViewConfigEntity;

import java.util.List;

/**
 * @author jianghuiyong
 * @email jianghuiyong@yunzhangfang.com
 * @date 2020-05-12 10:20:48
 */
public interface ViewConfigService extends IService<ViewConfigEntity> {

    /**
     * 查询大屏配置列表
     *
     * @param projectId
     * @return
     */
    List<ViewConfigEntity> queryList(Long projectId);

    /**
     *
     * @param projectIds
     * @return
     */
    boolean removeByProjectId(List<Long> projectIds);

    /**
     * 保存或修改大屏配置
     *
     * @param viewConfigEntity
     * @return
     */
    boolean saveOrUpdateViewConfig(ViewConfigEntity viewConfigEntity);

    /**
     * @param viewId
     * @return
     */
    boolean removeViewConfig(Long viewId);

    /**
     * 发布大屏
     *
     * @param viewId
     * @return
     */
    boolean pushViewConfig(Long viewId);

    /**
     * 取消发布
     *
     * @param viewId
     * @return
     */
    boolean removePublish(Long viewId);

    /**
     * 查询模板详细配置信息
     *
     * @param viewId
     * @return
     */
    ViewConfigEntity queryViewConfig(Long viewId);
}

